<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            text-decoration: none;
        }
        
        .box {
            margin: 150px auto;
            width: 500px;
            height: 250px;
            position: relative;
            /* user-select: none; */
            /* border: 1px solid #000; */
        }
        
        .box>.imgBox {
            position: relative;
            overflow: hidden;
        }
        
        .box>.imgBox>ul {
            font-size: 0;
            white-space: nowrap;
            /* transform: translateX(-100%); */
        }
        
        .box>.imgBox>ul>li {
            display: inline-block;
            width: 500px;
        }
        
        .box>.imgBox>ul>li>a>img {
            width: 100%;
        }
        
        .box>.imgBox>.arrow_left,
        .box>.imgBox>.arrow_right {
            width: 30px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            font-size: 20px;
            background-color: #ff6700;
            cursor: pointer;
            color: #fff;
            transition: all .3s linear;
        }
        
        .box>.imgBox>.arrow_left:hover,
        .box>.imgBox>.arrow_right:hover {
            background-color: skyblue;
            width: 40px;
        }
        
        .box>.imgBox>.arrow_left {
            position: absolute;
            top: 39%;
            left: 0;
        }
        
        .box>.imgBox>.arrow_right {
            position: absolute;
            top: 39%;
            right: 0;
        }
        
        .box>.dot_box {
            text-align: center;
            position: absolute;
            width: 100%;
            bottom: 95px;
        }
        
        .box>.dot_box>span {
            display: inline-block;
            width: 13px;
            height: 13px;
            /* background-color: #ff6700; */
            border-radius: 50%;
            border: 1px solid #ff6700;
            cursor: pointer;
        }
        /* .box>.dot_box>span:hover {
            background-color: green;
        } */
        
        .box>.dot_box>.dotActive {
            background-color: #ff6700;
        }
    </style>
</head>

<body>
    <div class="box">
        <!-- //图片 -->
        <div class="imgBox">
            <!-- //图片列表 -->
            <ul>
                <li>
                    <a href=""></a>
                </li>
                <li>
                    <a href=""></a>
                </li>
                <li>
                    <a href=""></a>
                </li>
                <li>
                    <a href=""></a>
                </li>
            </ul>
            <div class="arrow_left">&lt;</div>
            <div class="arrow_right">&gt;</div>
        </div>

        <!-- //小圆点 -->
        <div class="dot_box">
            <span class="dot dotActive" data-index="1"></span>
            <span class="dot" data-index="2"></span>
            <span class="dot" data-index="3"></span>
            <span class="dot" data-index="4"></span>
        </div>
    </div>

    <script src="./index.js"></script>
</body>

</html>